/**
 * 定义站点模块
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.bcAccessTable',['water.common.AJAXService']);
	
	module.service('$bcAccessTableService',function($AJAXService){
				
		/**
		 * 获取设备
		 */
		this.getList = function(){
			var promise = $AJAXService.post("/BcAccessTable/getList");
			return promise;
		}
		
		/**
		 * 获取设备
		 */
		this.getModels = function(deviceId){
			var promise = $AJAXService.post("/BcAccessTable/getModels",{id:deviceId});
			return promise;
		}
		
		/**
		 * 新增设备
		 */
		this.create = function(model){
			var promise = $AJAXService.post("/BcAccessTable/create",model);
			return promise;
		}
		
		/**
		 * 修改设备
		 */
		this.update = function(model){
			var promise = $AJAXService.post("/BcAccessTable/update",model);
			return promise;
		}
		
		/**
		 * 删除设备
		 */
		this.deleteModel = function(data){
			var promise = $AJAXService.post("/BcAccessTable/delete",{id:data});
			return promise;
		}
		
	})
}(window, angular));